<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head th:include="public/page_css::page_css ('修改库位')" />

<body>
<div class="layui-fluid larry-wrapper">
    <div class="layui-row layui-col-space30">
        <div class="layui-col-xs24">
            <section class="panel panel-padding">
                <form id="form1" class="layui-form layui-form-pane" action="">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">快递单号</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" lay-verify="required" th:value="${kddh}"  name="kddh" id="kddh"/>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">承运商</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" th:value="${fhfs}" name="fhfs" id="fhfs"/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">运费</label>
                            <div class="layui-input-inline">
                                <input type="text" class="layui-input" th:value="${yf}" name="yf" id="yf"/>
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">实际重量</label>
                            <div class="layui-input-inline">
                                <input type="text" th:value="${sjzl}" name="sjzl" id="sjzl" autocomplete="off" class="layui-input">
                            </div>
                        </div>
                        <div class="layui-inline">
                            <label class="layui-form-label">备注</label>
                            <div class="layui-input-inline">
                                <input type="text" th:value="${bz}" name="bz" id="bz"  autocomplete="off" class="layui-input">
                            </div>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <div class="layui-input-block">
                            <button class="layui-btn" jq-filter="submit" lay-submit="" lay-filter="edit">保存</button>
                            <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                        </div>
                    </div>
                    <input type="hidden" th:value="${id}" id="id" name="id">
                </form>
            </section>
        </div>
    </div>
</div>
</body>
<div th:include="public/public_js::public_js"></div>

<script th:inline="javascript">
    $(function () {

    })
</script>
<script>

    layui.use(['myform','zzpUtils','form','jquery'],function () {
        var form = layui.form,
            zzpUtils = layui.zzpUtils,
            $ = layui.jquery;
        form.on("submit(edit)",function(data){
                zzpUtils.confirm("是否确定修改", function (index) {
                    zzpUtils.action({
                        url: "/wmsassistdelivery/edit",
                        data: JSON.stringify(data.field),
                        success: function (data) {
                                var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
                                parent.layer.close(index); //再执行关闭
                                if(data.message!=""){
                                    top.layer.msg(data.message);
                                }else{
                                    top.layer.msg(data.title);
                                }
                        }
                    })
                })
            return false;

        });
    });
</script>
</html>